package state;

public class MState implements State{
    @Override
    public void doSomething(Person person) {
        if (person.getHour() == 7) {
            System.out.println("eat breakfast");
        }else{
            person.setState(new LState());
            person.doSomething();
        }
    }
}
